<?php 
namespace Home\Model;
use Think\Model;
class PresentRecordModel extends Model{
	
	protected $tableName = 'present_record';
	
	//数据自动验证
	protected  $_validate = array(
			array('cardholder','require','持卡名不能为空！'),
			array('money','require','提现金额不能为空！'),
			array('remark','require','备注说明不能为空！')
			
	);
	protected $fields = array(
			'id',
			'beautician_id',
			'card_id',
			'cardholder',
			'money',
			'remark',
			'status',
			'created',
			'_pk'=>'id',
			'_autoink'=>true
	);
}	